package com.zimi.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 营业执照信息 model
 *
 * @author lnintr
 * @since 2019-07-04
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value = "CompanyBusinessLicence对象", description = "营业执照信息")
public class CompanyBusinessLicence extends Model<CompanyBusinessLicence> {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "统一社会信用代码")
    private String creditCode;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "公司类型")
    private String companyType;

    @ApiModelProperty(value = "地址")
    private String address;

    @ApiModelProperty(value = "法定代表人")
    private String legalPerson;

    @ApiModelProperty(value = "注册资本")
    private String registeredCapital;

    @ApiModelProperty(value = "成立日期")
    private Date establishmentDate;

    @ApiModelProperty(value = "成立日期自")
    private Date businessFrom;

    @ApiModelProperty(value = "营业期限至")
    private Date businessTerm;

    @ApiModelProperty(value = "经营范围")
    private String businessScope;

    @ApiModelProperty(value = "营业状态")
    private String status;

    @ApiModelProperty(value = "登记机关")
    private String authority;

    @ApiModelProperty(value = "公司核准日期")
    private Date approval;

    @ApiModelProperty(value = "创建人")
    private Integer createUser;

    @ApiModelProperty(value = "营业执照创建编号")
    private Integer fileId;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "修改人员")
    private Integer updateUser;

    @ApiModelProperty(value = "修改时间")
    private Date updateTime;

    @ApiModelProperty(value = "数据状态:1:有效数据，2：预删除")
    private Integer gmtState;

    @Override
    protected Serializable pkVal() {
        return id;
    }

}
